
public class Scores {
	private char[] sc1;
	private char[] sc2;
	
	public Scores(char[] s1, char[] s2){
		this.sc1 = s1;
		this.sc2 = s2;
		//System.out.println(s1+" "+s2);
	}
	
	public Scores(){
		//System.out.println("unbelegte Scores erzeugt");
	}
	
	public void setscore(String s1, String s2){
		this.sc1 = s1.toCharArray();
		this.sc2 = s2.toCharArray();
	}

	public int sieger(){
		
		int i = 0;
		while(i<9){
			//System.out.println(sc1[i]+" "+sc2[i]);
			if( (int)sc1[i] > (int)sc2[i] )
				return 1;
			else if ((int)sc1[i] < (int)sc2[i] )
				return 2;
			i++;
		}
		return 0;
	}
}
